package com.bwie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bwie.pojo.Menu;
import com.bwie.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<Menu> getMenuTree(@Param("userId") Integer userId);

    List<String> getRoleByUserId(@Param("userId") Integer userId);
}